package com.bwie.system.controller;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("usere")
@CrossOrigin
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("slectt/{phone}")
    public Result<User> selectt(@PathVariable("phone") String phone){
       User user= userService.selectt(phone);
       return  Result.success(user);
    }

}
